package cn.achao.csr.system.core.mq.consumer;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

/**
 * @Author: achao
 **/
@Slf4j
@Service
@RocketMQMessageListener(topic = "csr-test-topic", consumerGroup = "csr-test-group")
public class MyConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        log.info("收到的mq消息{}", s);
    }
}
